<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>表单页面</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/res/layui/css/layui.css" media="all">
    <script src="/res/layui/layui.js"></script>
    <script src="/res/js/book/user.js"></script>
    <script src="/res/js/book/tools.js"></script>
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>用户信息维护</legend>
</fieldset>

<form class="layui-form" action="" lay-filter="example">
    <input type="hidden" name="userId" id="userId"><!-- 加一个隐藏主键 -->
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-inline">
                <input type="text" name="userName" id="userName" lay-verify="required" autocomplete="off" placeholder="请输入用户名" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-inline">
                <input type="text" name="userPwd" lay-verify="required" lay-reqtext="密码是必填项，岂能为空？" placeholder="请输入密码" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">生日</label>
            <div class="layui-input-inline">
                <input type="text" name="userBirthday" id="userBirthday" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-inline">
                <input type="radio" name="userSex" value="man"  title="男"  >
                <input type="radio" name="userSex" value="woman"  title="女" >
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">地区</label>
            <div class="layui-input-inline">
                 <select  name="userArea">
                    <option value="">===请选择===</option>
                    <option value="hunan">湖南</option>
                    <option value="hubei">湖北</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">爱好</label>
            <div class="layui-input-inline">
                <input type="checkbox" name="userHobby" value="写作" title="写作">
                <input type="checkbox" name="userHobby" value="阅读" title="阅读">
                <input type="checkbox" name="userHobby" value="发呆" title="发呆">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">照片</label>
        <div class="layui-input-block">
            <input type="file" name="userPhoto" >
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">用户简历</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入内容" name="userRemark" id="userRemark" class="layui-textarea"></textarea>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="button" class="layui-btn" lay-submit="" lay-filter="tijiao">立即提交</button>
            <button type="button" class="layui-btn layui-btn-primary" id="close_btn">关闭</button>
        </div>
    </div>

</form>

</body>
</html>